﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ThridGroup.ERP.DTO;

namespace ThridGroup.ERP.HumanResources
{
    public interface InterviewIService
    {
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="interview">实体</param>
        /// <returns>返回任务</returns>
        Task<int> AddInterview(InterviewDTO interview);
        /// <summary>
        /// 获取面试列表
        /// </summary>
        /// <returns>返回任务</returns>
        Task<List<InterviewDTO>> GetInterview();
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="interviewId">主键</param>
        /// <returns>返回任务</returns>
        Task<int> DeleteInterview(int interviewId);
        /// <summary>
        /// 返回单条数据
        /// </summary>
        /// <param name="interviewId">主键</param>
        /// <returns>返回任务</returns>
        Task<InterviewDTO> FanInterview(int interviewId);
        /// <summary>
        /// 编辑
        /// </summary>
        /// <param name="interview">实体</param>
        /// <returns>返回任务</returns>
        Task<int> UpdateInterview(InterviewDTO interview);
    }
}
